package company.baidu;

import java.util.Scanner;

public class BD3A {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int m = sc.nextInt();
        int n = sc.nextInt();
        int[] dp = new int[m];
        int step1 = 0;
        int step2 = 1;
        dp[1] = 1;
        for (int i = 2; i <= n; i++) {
            for (int j = 1; j <= n; j++) {
                if (i - j >= 0 && j != step1 && j != step2) {
                    dp[i] += j;
                }
            }
        }
    }


}
